<%@ page language="java" import="com.alibaba.fastjson.JSONObject" pageEncoding="UTF-8" %>
<%@ page import="weaver.conn.RecordSet" %>
<%@ page import="weaver.general.Util" %>
<%--获取流水号--%>
<%
    JSONObject dataJson = new JSONObject();
    int formid = Math.abs( Util.getIntValue( request.getParameter( "formid" ) ) );
    String type = Util.null2String( request.getParameter( "type" ) );
    RecordSet rs = new RecordSet();
    rs.executeQuery( "select mb from uf_drmxmb where lcbdid=? group by bb HAVING bb>=max(bb)", formid );
    rs.next();
    String docid = Util.null2String( rs.getString( 1 ) );
    rs.executeQuery( "select imagefileid from docimagefile where docid=?", docid );
    rs.next();
    String imagefileid = Util.null2String( rs.getString( 1 ) );
    dataJson.put( "imagefileid", imagefileid );
    out.print( dataJson );
%>
